//
//  VIPWebViewController.m
//  PeopleStreet
//
//  Created by 刘建峰 on 16/7/1.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "VIPWebViewController.h"

@interface VIPWebViewController ()
@property (weak, nonatomic) IBOutlet UIView *navView;
@property (weak, nonatomic) IBOutlet UIButton *titleLabel;
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation VIPWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initViewLayout];
    [self loadDate];
    // Do any additional setup after loading the view.
}


- (void)initViewLayout{
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    [_titleLabel setTitle:_titleStr forState:UIControlStateNormal];
}

- (void)loadDate{
    NSURLRequest *req = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",IP_Address_WEB,_url]]];
    [_webView loadRequest:req];
}

- (IBAction)back:(id)sender {
    [self.navigationController  popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
